﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using DBAccessor.Accessor;
using DBList.Entities;
using AlanUtilities;

public partial class top : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{
		String strUID = OperateControl.PickupAvaiableUserID(this);
		if (strUID != null){
			MemberAccessor memAcce = new MemberAccessor();
			UserData memData = memAcce.GetMemberInfo(int.Parse(strUID));
			String	strInfo="";
			if (memData.Address != null && memData.Address.Length > 0)
				strInfo = memData.Address;
			else if (memData.Introduction != null && memData.Introduction.Length > 0)
				strInfo = memData.Introduction;
			if (memData.RealName != null) {
				strInfo += "       ";
				strInfo += memData.RealName;
			}
			opeinfo.Text = strInfo;
			if(memData.GroupId == 5){
				shhideLink.Value = "显示左侧";
			}
			else {
				shhideLink.Value = "隐藏左侧";
			}
		}
	}
	protected void exitSystem_Click(object sender, EventArgs e)
	{
		Session[@"LogUserId"] = null;
		OperateControl.PickupAvaiableUserID(this);
	}
}
